<?php
$errorEntries = getAllErrorEntries();
$count = count($errorEntries);
?>
<table width="50%">
<tr>
	<td colspan="5"><input type="button" value="Clear" onclick="location.href='clearErrorTable.php'"></td>
</tr>
<tr>
	<td colspan="5">Row Count: <?echo $count?></td>
</tr>
<tr>
	<td><b>First name</b></td>
	<td><b>Surname</b></td>
	<td><b>Process</b></td>
	<td><b>Date TIme</b></td>
	<td><b>Score</b></td>
</tr>
<?
for ($i = 0; $i < 100 && $i < $count; $i++) {
?>
<tr>
	<td><?echo $errorEntries[$i]->firstName?></td>
	<td><?echo $errorEntries[$i]->surname?></td>
	<td><?echo $errorEntries[$i]->process?></td>
	<td><?echo $errorEntries[$i]->dateTime?></td>
	<td><?echo $errorEntries[$i]->score?></td>
</tr>
<?}?>
</table>